package com.vehicle_information_management_system.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.vehicle_information_management_system.dto.TripCount;
import com.vehicle_information_management_system.dto.TripDto;
import com.vehicle_information_management_system.pojo.TripInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author huawei
* @description 针对表【trip_info】的数据库操作Mapper
* @createDate 2025-02-17 10:08:02
* @Entity com.vehicle_information_management_system.pojo.TripInfo
*/
public interface TripInfoMapper extends BaseMapper<TripInfo> {

    IPage<TripInfo> getTripList(Page<TripInfo> page, @Param("ew")QueryWrapper<TripInfo> queryWrapper);

    void updateTripInfo(TripInfo tripInfo);

    TripDto getTripInfoByTripId(Integer tripId);

    IPage<TripDto> getTripListByUserId(Page<TripDto> page, @Param("ew")QueryWrapper<TripDto> queryWrapper);

    List<TripCount> getTripCountByDepartment();

    List<TripDto> selectAllTrip();

    void batchUpdateIsProcessed(List<Integer> vehicleIds);
}




